const expressJoi = require('@escook/express-joi');
const express = require('express');
const router = express.Router();
const { del_schema, add_schema } = require("../utils/schema/course")
const course_router = require("../controller/course.js")

router.get("/AllList", course_router.getALlList)
router.get("/list", course_router.getList)

router.delete("/delete/:id/:is_delete", expressJoi(del_schema), course_router.deleteById)
router.post("/add", expressJoi(add_schema), course_router.addCourse)

module.exports = router